<?php
	
	require_once "Zend/Json.php";
	require_once "Zend/Validate/Alnum.php";
	$name = $_POST['name'];
	$tags = $_POST['tags'];
	$status = $_POST['status'];
	$type = $_POST['type'];
	$description = $_POST['description'];
	
	$params = array (
		"name" => $name,
		"tags" => $tags,
		"status" => $status,
		"type"   => $type,
		"description"  => $description
	);
	
	echo Zend_Json::encode( $plugins -> storage -> modifyGroup( new Zend_Config ( $params ), $_POST["id"] ) );
